{
  "properties" : { },
  "id" : "803042969c5d458faa14ac09a4598d23",
  "script" : null,
  "groupId" : "74af8e1135d2474eb9b6b4081e6d5967",
  "name" : "获取设备状态",
  "createTime" : 1727071054543,
  "updateTime" : 1726653333278,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "devStateV3",
  "method" : "POST",
  "parameters" : [ {
    "name" : "deptid",
    "value" : "5",
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  } ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": [\n        {\n            \"deviceName\": \"SNXY.ShuiBeiQYB.R\",\n            \"deviceId\": \"D1379854958797032148\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳水北牵引变\",\n            \"deviceIp\": \"61.2.7.22\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"0\",\n            \"memUsage\": \"56\",\n            \"pingTim\": \"4.8\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.FengHouGF.R\",\n            \"deviceId\": \"D1794205050062480615\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳封侯光伏电站\",\n            \"deviceIp\": \"61.2.7.25\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"3\",\n            \"memUsage\": \"55\",\n            \"pingTim\": \"7.91\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.YingFangGF.R\",\n            \"deviceId\": \"D7718132914135761883\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"营房光伏\",\n            \"deviceIp\": \"61.2.7.18\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"0\",\n            \"memUsage\": \"49\",\n            \"pingTim\": \"8.695\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.RuiLiangB.R\",\n            \"deviceId\": \"D8782684233795574900\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳330kV瑞良变\",\n            \"deviceIp\": \"61.2.7.37\",\n            \"deviceModel\": \"\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\"\n        },\n        {\n            \"deviceName\": \"SN-XY.HouJiB.R\",\n            \"deviceId\": \"D2502433354505010173\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳后稷变\",\n            \"deviceIp\": \"61.2.7.28\",\n            \"deviceModel\": \"MSR5620\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"2\",\n            \"memUsage\": \"39.33\",\n            \"pingTim\": \"5.4224997\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.ZhuangHeFD.R\",\n            \"deviceId\": \"D4722760040209177164\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳庄合风电场\",\n            \"deviceIp\": \"61.2.7.35\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"64\",\n            \"pingTim\": \"10.5\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-DYBHJ.R1\",\n            \"deviceId\": \"D3602382218928185367\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"大杨变汇聚\",\n            \"deviceIp\": \"61.2.7.1\",\n            \"deviceModel\": \"NE40E-X8\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"华为\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"14\",\n            \"memUsage\": \"21\",\n            \"pingTim\": \"3.375\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.YanXiaGF.R\",\n            \"deviceId\": \"D1428627293168408119\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳烟霞光伏电站\",\n            \"deviceIp\": \"61.2.7.26\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"55\",\n            \"pingTim\": \"6.45\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.JingHuiGF.R\",\n            \"deviceId\": \"D4539193139686939432\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳泾惠光伏电站\",\n            \"deviceIp\": \"61.2.7.33\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"61\",\n            \"pingTim\": \"7.7325\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.LingShangQYB.R\",\n            \"deviceId\": \"D4218574736997374073\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳岭上牵引变\",\n            \"deviceIp\": \"61.2.7.23\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"56\",\n            \"pingTim\": \"5.3725004\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XianYanBinChangDianC.R\",\n            \"deviceId\": \"D1414190446073377326\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"彬长电厂\",\n            \"deviceIp\": \"61.2.7.14\",\n            \"deviceModel\": \"AR46-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"华为\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"\",\n            \"memUsage\": \"\",\n            \"pingTim\": \"7.7875\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.QingHuaGF.R\",\n            \"deviceId\": \"D1610364992788735974\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳庆华光伏电站\",\n            \"deviceIp\": \"61.2.7.38\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"61\",\n            \"pingTim\": \"9.1825\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-DYBHJ-2.R1\",\n            \"deviceId\": \"D1024435846037589038\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"大杨变汇聚-2\",\n            \"deviceIp\": \"61.2.7.2\",\n            \"deviceModel\": \"SR8808-F\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"2.5\",\n            \"memUsage\": \"31\",\n            \"pingTim\": \"4.19\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.TuQiaoFD.R\",\n            \"deviceId\": \"D4864360630379879818\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳土桥风电场\",\n            \"deviceIp\": \"61.2.7.21\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"55\",\n            \"pingTim\": \"8.3225\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.WoLongGF.R\",\n            \"deviceId\": \"D4177564927955540878\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳卧龙光伏电站\",\n            \"deviceIp\": \"61.2.7.30\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"56\",\n            \"pingTim\": \"6.14\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"\",\n            \"deviceId\": \"D7835121342400110538\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳上桐湾风电场\",\n            \"deviceIp\": \"61.2.7.36\",\n            \"deviceModel\": \"\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\"\n        },\n        {\n            \"deviceName\": \"SN-SX.ChengHeGF.R\",\n            \"deviceId\": \"D8923265255878093026\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳臣合光伏电站\",\n            \"deviceIp\": \"61.2.7.40\",\n            \"deviceModel\": \"MSR3610\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"3\",\n            \"memUsage\": \"64\",\n            \"pingTim\": \"11.400001\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.ShiLiYuanGF.R\",\n            \"deviceId\": \"D1560198283198553515\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳十里塬光伏电站\",\n            \"deviceIp\": \"61.2.7.31\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"0\",\n            \"memUsage\": \"56\",\n            \"pingTim\": \"6.9925\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"ZhuangTouB_XY_R\",\n            \"deviceId\": \"D3053508105401173974\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"庄头\",\n            \"deviceIp\": \"61.2.7.16\",\n            \"deviceModel\": \"MSR56-60\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"63\",\n            \"pingTim\": \"7.575\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XX.TianGeQYB.R\",\n            \"deviceId\": \"D8333666110224418097\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"西咸天阁牵引变\",\n            \"deviceIp\": \"61.2.7.24\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"54\",\n            \"pingTim\": \"7.95\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.PanChuanGF.R\",\n            \"deviceId\": \"D1140048766432171936\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳盘川光伏电站\",\n            \"deviceIp\": \"61.2.7.27\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"55\",\n            \"pingTim\": \"7.91\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.ShengDaGF.R\",\n            \"deviceId\": \"D4490177338185740694\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳晟达光伏\",\n            \"deviceIp\": \"61.2.7.41\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"3\",\n            \"memUsage\": \"62\",\n            \"pingTim\": \"8.860001\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.HeJiaShanFD.R\",\n            \"deviceId\": \"D4087463820706726484\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳和家山风电场\",\n            \"deviceIp\": \"61.2.7.20\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"54\",\n            \"pingTim\": \"6.77\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"\",\n            \"deviceId\": \"D2930864638584916615\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳石门风电场\",\n            \"deviceIp\": \"61.2.7.32\",\n            \"deviceModel\": \"\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\"\n        },\n        {\n            \"deviceName\": \"SN-XY.GaoMiaoShanGF.R\",\n            \"deviceId\": \"D5295136948709756036\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳高庙山光伏电站\",\n            \"deviceIp\": \"61.2.7.29\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"56\",\n            \"pingTim\": \"9.8975\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XianYangYangLingDianC.R\",\n            \"deviceId\": \"D7008473737472733870\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"杨凌电厂\",\n            \"deviceIp\": \"61.2.7.17\",\n            \"deviceModel\": \"MSR56-60\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"37\",\n            \"pingTim\": \"5.8425\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.LiMinFD.R113\",\n            \"deviceId\": \"D1481718669032297212\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \" 咸阳利民风电场\",\n            \"deviceIp\": \"61.2.7.34\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"56\",\n            \"pingTim\": \"7.7149997\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.FangLiGF.R\",\n            \"deviceId\": \"D1199538849984407206\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"咸阳方里光伏电站\",\n            \"deviceIp\": \"61.2.7.39\",\n            \"deviceModel\": \"MSR36-40\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"H3C\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"1\",\n            \"memUsage\": \"61\",\n            \"pingTim\": \"7.6375003\",\n            \"packetLoss\": \"0\"\n        },\n        {\n            \"deviceName\": \"SN-XY.QianXianB.R.R\",\n            \"deviceId\": \"D4348751524647011689\",\n            \"openStatusName\": \"未检修\",\n            \"deviceAlias\": \"乾县变750kV\",\n            \"deviceIp\": \"61.2.7.19\",\n            \"deviceModel\": \"AR6300\",\n            \"alarmTypeName\": \"\",\n            \"alarmTarget\": \"\",\n            \"deviceFirm\": \"华为\",\n            \"levelId\": \"\",\n            \"num\": \"\",\n            \"id\": \"\",\n            \"min(leve.displayColor)\": \"\",\n            \"devRunState\": \"\",\n            \"deptId\": \"5\",\n            \"ipMask\": \"\",\n            \"cpuUsage\": \"5.5\",\n            \"memUsage\": \"16.5\",\n            \"pingTim\": \"5.4700003\",\n            \"packetLoss\": \"0\"\n        }\n    ]\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  }
}
================================
  import org.springblade.core.tool.utils.CollectionUtil
  import org.springblade.common.cache.DictCache
  import org.springblade.core.tool.utils.StringUtil
  import redis


    String deptId = deptid::string;
    List listDeviceId = new ArrayList()
    //全网拓扑，只展示汇聚及以上
    if ("0".equals(deptId)) {
        List listId = db.table("ndmp_device").column("id").where().eq("device_type", 1).in("station_prop", Arrays.asList(2, 3)).select()
        for (map in listId) {
            listDeviceId.add(map.get("id"))
        }
    } else {
        // 本级设备id
        List listId = db.table("ndmp_group_device_relation").column("device_id").where().eq("group_id", deptId).select()
        for (map in listId) {
            listDeviceId.add(map.get("deviceId"))
        }
    }

    if (CollectionUtil.isEmpty(listDeviceId)) {
        return new ArrayList();
    }

    List res = db.select("""
    SELECT A.*, b.*  
    FROM (select net.device_name, net.ID device_id,
                 CASE WHEN net.OPEN_STATUS = 1 THEN '未检修' WHEN net.OPEN_STATUS = 0 THEN '检修' END AS open_status_name,
                 net.device_alias, net.IP device_ip, model.device_model, info.alarm_type_name, info.alarm_target, model.device_firm
         from ndmp_device net
         left join 
            ( select MIN( ty.type_name ) alarm_type_name, alarm_target 
              from alarm_info alarm
              left join alarm_rule ru on ru.id = alarm.alarm_rule_id
              left join alarm_metric met on met.id = ru.rule_metric_id
              left join alarm_type ty on ty.id = met.metirc_type_id
              group by alarm.alarm_target ) info on net.id = info.alarm_target
              left join ndmp_net_device_model_info model ON net.DEVICE_MODEL_ID = model.ID) A
              left join 
                  (select MIN( leve.level ) level_id,COUNT ( leve.level ) num,info.alarm_target id,min(leve.display_color)
                   FROM alarm_info info
                   left join alarm_rule ru on ru.id = info.alarm_rule_id
                   left join alarm_level leve on leve.level = ru.level
                   where info.is_recovery = '1' and leve.level is not null
                   group by info.alarm_target) b on A.device_id = b.ID
                   where A.device_id in
        <foreach item="item" index="index" collection="listDeviceId" open="(" separator="," close=")">
            #{item}
        </foreach>
    """)
    for (deviceState in res) {
        int runState; //默认未采集
        //根据采集状态和告警信息 确定设备的运行状态

        if (deviceState.get("num") ==null) { //正常
            runState = 4;
        } else {
            runState = deviceState.get("levelId");
        }
        deviceState.put("devRunState", runState); //添加设备运行状态
        deviceState.put("deptId", deptId);

        if (!StringUtil.isEmpty(deviceState.get("deviceFirm"))) {

            deviceState.put("deviceFirm", DictCache.getValue("deviceFirm", deviceState.get("deviceFirm").intValue()));
        }

        String deviceId = deviceState.get("deviceId");
        // 掩码
        String ipMask = "" // IpChartBizUtil.getMask(deviceId, deviceState.get("deviceIp"));
        deviceState.put("ipMask", ipMask);


        var fileds = Arrays.asList("cpuUsage", "memUsage", "delayTime", "packetLoss")

        var pointSoftVersion = redis.getPoint(deviceId, fileds);

        if (CollectionUtil.isNotEmpty(pointSoftVersion)) {
            var cpuUsage = pointSoftVersion[0].cpuUsage
            var memUsage = pointSoftVersion[0].memUsage
            var delayTime = pointSoftVersion[0].delayTime
            var packetLoss = pointSoftVersion[0].packetLoss
            deviceState.put("cpuUsage", cpuUsage);
            deviceState.put("memUsage", memUsage);
            deviceState.put("pingTim", delayTime);
            deviceState.put("packetLoss", packetLoss);


        }


    }

    return res